<?php use Zend\Filter\Null;

if ($this->pageCount): ?>
     <div class="dataPage">
     		<?php echo '总记录：'.$this->totalItemCount.' 条';?>
     		
             <!-- Previous page link -->
             <?php if (isset($this->previous)): ?>
                     <a href="#" onclick="paginator(<?php echo $this->previous; ?>)">
                         <<
                     </a>
             <?php else: ?>
                     <a class="disabled" href="#">
                         <<
                     </a>
             <?php endif; ?>

             <!-- Numbered page links -->
             <?php foreach ($this->pagesInRange as $page): ?>
                 <?php if ($page != $this->current): ?>
                         <a href="#" onclick="paginator(<?php echo $page; ?>)">
                             <?php echo $page; ?>
                         </a>
                 <?php else: ?>
                         <a class="active" href="#"><?php echo $page; ?></a>
                 <?php endif; ?>
             <?php endforeach; ?>

             <!-- Next page link -->
             <?php if (isset($this->next)): ?>
                     <a href="#" onclick="paginator(<?php echo $this->next; ?>)">
                         >>
                     </a>
             <?php else: ?>
                     <a class="disabled" href="#">
                         >>
                     </a>
             <?php endif; ?>
     </div>
 <?php endif; ?>
